package cn.uyunsky.platform.taglib;

public class NumberInputTag extends BaseInputTag {

	private static final long serialVersionUID = 1L;
	private static String STYLE_CLASS = "uyunsky_number";

	private String maxlength = "17";

	public String getMaxlength() {
		return maxlength;
	}

	public void setMaxlength(String maxlength) {
		this.maxlength = maxlength;
	}

	public NumberInputTag() {
//		super.setValue("0.00");
	}

	protected String prepareOtherClass() {
		return STYLE_CLASS;
	}

	protected void prepareOtherAttributes(StringBuffer results) {
		prepareAttribute(results, "type", "text");
		prepareAttribute(results, "maxlength", maxlength);
	}
}
